﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using Canyala.Lagoon.Extensions;

namespace Canyala.Lagoon.Presentation
{
    public class StringView : PrimitiveView<String>
    {
        public static StringView Empty { get { return new StringView(String.Empty); } }

        public String String
        {
            get { return State; }
            set { State = value; NotifyPropertiesChanged("String", "HasValue"); }
        }

        public bool HasValue { get { return State.HasValue(); } }

        public StringView()
            {}

        public StringView(String state)
            { State = state; }
    }
}
